Technical details:
Advantages:
Disadvantages:
Python has a strong position in scientific computing:
Extensive ecosystem of scientific libraries and environments
Great performance due to close integration with time-tested and highly optimized codes written in C and Fortran:
Good support for
Readily available and suitable for use on high-performance computing clusters.
Open source:
Some important differences:
print "heho"
print("heho")
Focus on Python versions 2.7+ and/or 3.3+
from __future__ import division, print_function, absolute_import, unicode_literals
try:
range = xrange
xrange = None
except NameError:
pass
Further reading:
In [1]:
print len('øø')
print 4/5
In [2]:
from __future__ import division, print_function, absolute_import, unicode_literals
print(len('øø'))
print(4/5)
Some of these slides have been based on the scientific Python lectures made by J.R. Johansson (robert@riken.jp) http://dml.riken.jp/~rob/